#include <iostream>

using namespace std;

class person {
	public:

		int m_A;
		int m_B;

		person(): m_A(10), m_B(10) {}

		person operator+ (const person &p) {
			person tmp;
			tmp.m_A = this->m_A + p.m_A;
			tmp.m_B = this->m_B + p.m_B;
			return tmp;
		}
};

void test1() {
	person p1;
	person p2;

	person p3 = p1 + p2;

	cout << p3.m_A << endl;
	cout << p3.m_B << endl;
}

int main() {
	test1();

	return 0;
}